using System;
using System.Collections;
using System.Xml;

namespace Commons.Parser
{
	public class XMLParserBase
	{
		protected XmlDocument _xmlDoc;
		public Action Loaded;

		public XMLParserBase(string levelXmlPath)
		{
			Loaded = null;
			_xmlDoc = XMLTools.getNewXMLDocument(levelXmlPath);
		}

		protected void OnLoaded()
		{
			if (Loaded != null)
			{
				Loaded();
			}
		}
	}
}